<template>
  <div id="app">
    <ul v-for="(item, index) in myArr" :key="index">
      <li>{{item}}</li>
    </ul>
    <button @click="goonego">走一走</button>
  </div>
</template>

<script>
export default {
  name: 'TaskOneDemoApp',

  data() {
    return {
      myArr: ["帅哥", "美女", "程序猿"],
    };
  },

  mounted() {
    
  },

  methods: {
    goonego(){
    let one=this.myArr.shift()
    this.myArr.push(one)
    }
  },
};
</script>

<style lang="scss" scoped>

</style>